package com.gitee.zycra.future.job.client.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author zycra
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class JobTriggerDTO {

    /**
     * 执行ID
     */
    private Long runningId;

    /**
     * 执行参数
     */
    private String scheduleParam;

    /**
     * 下次调度时间
     */
    private LocalDateTime scheduleTime;

    /**
     * 任务类名
     */
    private String jobClassName;

    /**
     * 是否为取消执行请求
     */
    private Boolean cancel;

    /**
     * 是否是超时执行请求
     */
    private Boolean timeout;
}
